div class="navbar navbar-default navbar-fixed-top"
  div class="container"
    div class="navbar-header"
      a href="/admin/index" class="navbar-brand" 管理系统
      button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-main"
        span class="icon-bar"
        span class="icon-bar"
        span class="icon-bar"
    div class="navbar-collapse collapse" id="navbar-main"
      ul class="nav navbar-nav"
        li
          a href="/admin/passwords/edit" 修改密码

      ul class="nav navbar-nav navbar-right"
        - if admin_signed_in?
          li
            a href="#"
              | 您好，
              = current_admin.username
          li
            = link_to "注销", destroy_admin_session_path, :method => :delete
        - else
          li
            = link_to "登录", new_admin_session_path
